package com.zhx.threadcoreknowledge.createthread;

/**
 * @author ：zhanghaixuan
 * @date ：Created in 2019-09-17 08:24
 * 用途: 用runnable方式创建线程
 */
public class RunnableStyle implements Runnable{

    public static void main(String[] args) {
        Thread thread = new Thread(new RunnableStyle());
        thread.run();
    }

    @Override
    public void run() {
        System.out.println("用runnable方法实现线程");
    }
}
